//饿汉模式
class SingCaseMode1{
    private static SingCaseMode1 instance =null;
    public static SingCaseMode1 getInstance(){
        return instance;
    }
    private SingCaseMode1(){};
}
public class ThreadDemo11 {
    public static void main(String[] args) {
        SingCaseMode1 s1 = SingCaseMode1.getInstance();
        SingCaseMode1 s2 = SingCaseMode1.getInstance();
        System.out.println(s1==s2);

    }
}
